home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Online / IB-TablePrint / Table.hlp < prev   
Encoding:
Text File  |  2001-08-17  |  6.6 KB  |  163 lines

  1. G4C
  2.  
  3. TEXTFILE env:.Tb_Goal
  4.  Table.gc V1.05 17 Aug 2001
  5.  Author: Joseph Duchâtelet jduchatelet @arcadis.be
  6.  When you want to print HTML files from IBrowse using the 'Postscript'
  7.  Print possibility, you may observe that some tables (*) are not fully
  8.  printed at the right side. That's because they are not defined in 
  9.  relative value (most seem to be) but in absolute value. The values chosen
  10.  are OK for high resolution screens, but not for printing.
  11.  This program loads an HTML page, finds its litigious 'table widths' and
  12.  sets them to a preset value of 450 in the 'Default' ROUTINE, where you 
  13.  may want to alter it to suit your printer best.
  14.  
  15.  (*) or other 'fixed width' elements such as images
  16.  
  17. ### 
  18.  
  19. TEXTFILE ENV:.Tb_Lic&Credits
  20.  This SW is copyrighted to me, the author.
  21.  The 'StripIt' routine is from Tony McGee
  22.  No guarantee is given.
  23.  You are free to use it as is and or adapt it for your private needs.
  24.  In case you want to spread any adaption, it should respect the same 
  25.  terms  and mention this initial copyright.
  26.  No commercial use allowed without my written permission.
  27.  The program makes use of 
  28.  - Gui4Cli which is copyrighted to Dimitris 
  29.  Keletsekis
  30.  see http://users.hol.gr/~dck/gcmain.htm or Aminet.
  31.  reach him at dck@hol.gr or join the Gui4Cli maillist at yahoogroups.com
  32.  - FastStrip V1.1 by Jason Frecknall (jay@blidworth.demon.co.uk ) 
  33. ### 
  34.  
  35. TEXTFILE ENV:.Tb_Start&Usage
  36.  Copy the drawer any place on your HD.
  37.  The program needs Gui4Cli properly installed. 
  38.  It needs also 'FastStrip' by Jason Frecknall in the command path 
  39.  (eg in c:) (jay@blidworth.demon.co.uk )
  40.  
  41.  This being the case,
  42.  1. You can start this program from the Workbench.
  43.  2. You can start the program from the shell
  44.  a. when  Gui4CLI is running 
  45.  - gui Fullpath:Table.gc (may fail if you use a relative path)
  46.  - rx 'ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc"' or
  47.  - rx 'ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc"' "FromFlPth" "2FlPth"
  48.  giving it the path&name of file to transform and where to save the 
  49.  transformed file. ((*)Path: could be guitb: if you did run Table.gc 
  50.  before in your session. The program makes this assign itself)
  51.  b. when Gui4Cli is NOT running
  52.  - gui Path:Table.gc (relative or fullpath, but fullpath is to be preferred)
  53.  - gui (will call up a file requester to choose Table.gc with)
  54.  gui (comes ith Gui4Cli should be in the path (eg c:) of course )
  55.  3. from an other running Gui4Cli: next help screen
  56. ###
  57.  
  58. TEXTFILE ENV:.Tb_Start&Usage2
  59.  
  60.  3. You can start from an other running Gui4Cli
  61.  - have the line
  62.  - GuiLoad Path:Table.gc ; (*)Path: see above
  63.  GuiLoad Path:Table.gc FrmFlPth 2FlPth
  64.  in an event sequence
  65.  4. You can start from an arexx script
  66.  - ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc" or
  67.  - ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc" "FromFlPth" "2FlPth"
  68. ### 
  69.  
  70. TEXTFILE ENV:.Tb_IB_Start
  71.  Two methods to integrate the script with IBrowse. You choose.
  72.  1. First method: Two Arexx scripts are added 
  73.  - 'LaunchTable.ibrx' 
  74.  - 'GetTableResult.ibrx'
  75.  They should be copied in the IBrowse Arexx drawer and you should 
  76.  add them to the IBrowse Macro's Menu or to the FAB menu's
  77.  - LaunchTable.ibrx  will launch  Table.gc from IBrowse, whether 
  78.  Gui4Cli is running or not.
  79.  It will ask however for the guitb: assign for the Table.gc drawer.
  80.  You may want to have this assign in your user startup.
  81.  Due to limitations of IBrowse Arexx commands (notably QUERY URL 
  82.  not working) you are suggested to use the program as follows
  83.  - Save the html file in the guitb:2Transfrorm/ drawer.
  84.  - On startup of Table.gc eg (with the LaunchTable.ibrx macro
  85.    or when looking for a new file to transfrom,
  86.    Table.gc's filerequester will open there first.
  87.  - Save the transformed file in 'guitb:Transformed' drawer as proposed
  88.    by Table.gc 's filerequester.
  89.    and answer OK  when you are asked to delete the 'original' html file
  90.    (it's just the copy in the '2Transform/' drawer
  91.  - Start the 'GetTableResult.ibrx' macro
  92.    Ibrowse will identify the files in the 'Transformed' drawer: 
  93.    double click to load the transformed file
  94.  - Print from IBrowse/Document/Print menu using 
  95.    PrintMode  : Postscript
  96.    Destination : Custom and PS: in the textinput gadget, 
  97.    if you use Turboprint and GhostScript
  98.  2. Second Method : simpler
  99.  - you can still launch Table.gc with 'LaunchTable.ibrx' 
  100.  When Table.gc is running
  101.  - Save the document to transform (Save As) in the IBrowse drawer
  102.  (Sys:Internet/IBrowse in the script, you may have to adapt the lines of the
  103.  xONNOTIFY commands if that is not your case) that is opened 
  104.  as APrint.html
  105.  
  106.  It will be transformed and loaded again in the Browser under that name.
  107.  Print it out now as a PS file.
  108.  
  109. ###
  110. TEXTFILE ENV:.Tb_Strip
  111.  Using the <<Strip>> button gives you the choice to strip all the image 
  112.  links or to maintain the ones you wish. You can use <<Nn>>(None); 
  113.  <<Al>> (All) and <<Tg>> (Toggle) buttons to make your selection.
  114.  The initial requester however d
  115.  
  116.  Stripping the image links will give you more place for the text and tables.
  117.  Tables wordwrapped in too narrow columns are not easy to read!.
  118.  If you don't strip any (or all) and just reload the transformed file 
  119.  as a local  file the page will show the remaining links as 'error' icons in
  120.  the IB window, not the original 
  121.  images. This is what will be printed out.
  122.   
  123. ###
  124. TEXTFILE ENV:.Tb_Save
  125.  You can save the modified document any place using <<Save>> and its
  126.  requester. If you reload it from ram: or HD into IB and print it out, 
  127.  all images will be replaced with the 'error' images you 
  128.  have on the IB screen. If you want to maintain a number of images you 
  129.  should save the modified html document over its original one in the IB 
  130.  cache. Don't forget to save the original html page elsewhere. 
  131.  (eg Keep it in the 2Transform drawer, when the program proposes 
  132.  to delete it)
  133.  You can recognize the original page visually in the cache through its 
  134.  date (if you just downloade it) and through its 
  135.  comment info. You may want to use a 'find utility' to locate it.
  136. ### 
  137.  
  138. TEXTFILE ENV:.Tb_Extensions
  139.  
  140. - A button could be added to transform all the files in the 2Transform 
  141. drawer automatically.
  142. - Automate the replacement (& temporary backup) of the cached document 
  143.  with its modified copy 
  144. - Add the IBProlog functionality (ISO latin character set)
  145.  
  146. Your suggestions ?
  147.  
  148. ###
  149.  
  150. TEXTFILE ENV:.Tb_Changes
  151.  V1.05 
  152.  - Added possibility to strip images, all of them or a selected set
  153.  - Added more info on the IB Postscript printing process
  154.  - Improved the detection of litigious tables : all should be detected now
  155.  - Added 2 Turboprint & Ghostscript instruction documents
  156.  - Added ib2.html and ib2.ps testfiles
  157.  - Added help information on IBrowse Postscript printing in general.
  158.     (Any correction, addition , suggestion welcome) 
  159. ###  
  160.  
  161. xONQUIT
  162.  Delete env:.Tb_#? ; help info
  163.